ImageListAdd

 

Adds a new image to the image list.

 

void @ImageListAdd(object imageList, string filename);

 

Parameters

object imageList: The image list

string filename: The image to add to the list

 

Return Value

None.

 

Example

im = @ImageListNew();
@ImageListSetSize(im, 32, 32);
@ImageListAdd(im, "Folder.png");
@ImageListAdd(im, "Module.png");
@TreeViewSetImageList("TreeView1", im);

 

Description: Adds Folder.png and Module.png files as image items to an image list of size 32*32 and registers it as the image list to be used by the TreeView1 object.

 

Version Information

Supported Version: 10.3.3 or Higher

 

Related Helps

@ImageListAdd()

@ImageListNew()

@ImageListSetSize()